home *** CD-ROM | disk | FTP | other *** search
/ gdead.berkeley.edu / gdead.berkeley.edu.tar / gdead.berkeley.edu / pub / gdead / mac / stack-o-dead-1.8 / stack-o-dead-1.8.2.sit.hqx / SOD Upgrade 1.8.2 / cards.xml < prev    next >
Text File  |  1991-04-03  |  22KB  |  307 lines

  1. card_2915.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>2915</id>
  6.     <filler1>0</filler1>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <owner>2604</owner>
  11.     <link rel="stylesheet" type="text/css" href="stylesheet_3261.css" />
  12.     <part>
  13.         <id>1</id>
  14.         <type>button</type>
  15.         <visible> <true /> </visible>
  16.         <reserved5> 0 </reserved5>
  17.         <reserved4> 0 </reserved4>
  18.         <reserved3> 0 </reserved3>
  19.         <reserved2> 0 </reserved2>
  20.         <reserved1> 0 </reserved1>
  21.         <enabled> <true /> </enabled>
  22.         <rect>
  23.             <left>84</left>
  24.             <top>211</top>
  25.             <right>184</right>
  26.             <bottom>233</bottom>
  27.         </rect>
  28.         <style>roundrect</style>
  29.         <showName> <true /> </showName>
  30.         <highlight> <false /> </highlight>
  31.         <autoHighlight> <true /> </autoHighlight>
  32.         <sharedHighlight> <true /> </sharedHighlight>
  33.         <family>0</family>
  34.         <titleWidth>0</titleWidth>
  35.         <icon>0</icon>
  36.         <textAlign>center</textAlign>
  37.         <font>Chicago</font>
  38.         <textSize>12</textSize>
  39.         <textStyle>plain</textStyle>
  40.         <name>Upgrade</name>
  41.         <script>--  This button updates the Stack-O-Dead stacks.  It copies a new--  version of the PopUp menu XFCN, which is XFCN 1718--  It then updates a number of scriptson mouseUpglobal localPathanswer "Are you sure you are ready..." with "OK" or "Cancel"if it is not "OK" thenput "Upgrade not done!"exit mouseUpend if--put getPath() into localPathupgradeShowsupgradeTapesupgradeLabelsupgradeSongsupgradeStatsupgradeUtilityupgradeTunesend mouseUpon upgradeShowspush cardfixPopUp "Dead Shows"put card field "Shows-Labels Button" into LabelsScriptput card field "Shows-Tapes Button" into TapesScript--go stack "Dead Shows"fixStackScriptset the script of bg button "Labels" to LabelsScriptset the script of bg button "Tapes" to TapesScriptpop cardend upgradeShowson upgradeTapespush cardfixPopUp "Dead Tapes"put card field "Tapes-Background" into BgScript--go stack "Dead Tapes"fixStackScriptset the script of this background to BgScriptpop cardend upgradeTapeson upgradeLabelspush cardfixPopUp "Dead Labels"put card field "Labels-Background" into BgScriptput card field "Labels-Print" into PrintScript--go stack "Dead Labels"fixStackScriptfixLabelsset the script of this background to BgScriptset the script of bg button "Print" to PrintScriptpop cardend upgradeLabelson upgradeSongspush cardfixPopUp "Songs"--go stack "Songs"fixStackScriptpop cardend upgradeSongson upgradeStatspush cardfixPopUp "Dead Stats"--go stack "Dead Stats"fixStackScriptpop cardend upgradeStatson upgradeUtilitypush cardput card field "Utility-About" into AboutTextfixPopUp "Dead Utility"--go stack "Dead Utility"fixStackScriptgo card 1put AboutText into cd field "About"pop cardend upgradeUtilityon upgradeTunespush cardgo stack "Dead Tunes"fixStackScriptpop cardend upgradeTuneson fixLabelsdoMenu "Background"choose select tooldrag from 102,34 to 234,50doMenu "Clear Picture"drag from 30,216 to 146,230doMenu "Clear Picture"show bg field "top title"set the style of bg field "top title" to "opaque"set the autoTab of bg field "top title" to "false"set the lockText of bg field "top title" to "true"set the showLines of bg field "top title" to "false"set the textAlign of bg field "top title" to "center"set the textFont of bg field "top title" to "Geneva"set the textHeight of bg field "top title" to "16"set the textSize of bg field "top title" to "12"set the textStyle of bg field "top title" to "bold,outline,shadow,condense"set the wideMargins of bg field "top title" to "false"set the dontSearch of bg field "top title" to "true"set the dontWrap of bg field "top title" to "false"set the fixedLineHeight of bg field "top title" to "true"set the sharedText of bg field "top title" to "true"put "Grateful Dead" into bg field "top title"--show bg field "side title"set the style of bg field "side title" to "opaque"set the rect of bg field "side title" to "29,216,217,230"set the visible of bg field "side title" to "true"set the autoTab of bg field "side title" to "false"set the lockText of bg field "side title" to "true"set the showLines of bg field "side title" to "false"set the textAlign of bg field "side title" to "left"set the textFont of bg field "side title" to "Geneva"set the textHeight of bg field "side title" to "12"set the textSize of bg field "side title" to "9"set the textStyle of bg field "side title" to "bold,outline,shadow,condense"set the wideMargins of bg field "side title" to "false"set the dontSearch of bg field "side title" to "true"set the dontWrap of bg field "side title" to "false"set the fixedLineHeight of bg field "side title" to "true"set the sharedText of bg field "side title" to "true"put "Grateful Dead" into bg field "side title"--doMenu "Background"choose browse toolend fixLabels-------------------- Utility Scripts -----------------------on fixPopUp toStackglobal localPathput "upgrading " & quote & toStack & quote & "..."put localPath & the short name of this stack into fromFileput localPath & toStack into toFileCopyRes "XFCN", "PopUp", toFile, fromFileend fixPopUpon fixStackScriptput "-" & "-" & " Version 1.8.2" into verLineget line 1 of the script of this stackif it is verLine then exit fixStackScript--put verLine & return & return &┬¼"on version" & return &┬¼"  put line 1 of the script of this stack" & return &┬¼"end version" & return & return &┬¼the script of this stack into StackScript--set the script of this stack to StackScriptend fixStackScriptfunction getPathput the long name of this stack into thisPathdelete char 1 to (the length of ("stack" && quote)) of thisPathdelete last char of thisPathput the short name of this stack into shortNameput ((the length of thisPath) - (the length of shortName)) into pathLenput char 1 to pathLen of thisPath into pathNamereturn pathNameend getPathfunction trimIt namedelete char 1 to (the length of ("stack" && quote)) of namedelete last char of namereturn nameend trimIt</script>
  42.     </part>
  43.     <part>
  44.         <id>2</id>
  45.         <type>field</type>
  46.         <visible> <true /> </visible>
  47.         <dontWrap> <false /> </dontWrap>
  48.         <dontSearch> <false /> </dontSearch>
  49.         <sharedText> <false /> </sharedText>
  50.         <fixedLineHeight> <false /> </fixedLineHeight>
  51.         <autoTab> <false /> </autoTab>
  52.         <lockText> <false /> </lockText>
  53.         <rect>
  54.             <left>20</left>
  55.             <top>11</top>
  56.             <right>241</right>
  57.             <bottom>189</bottom>
  58.         </rect>
  59.         <style>shadow</style>
  60.         <autoSelect> <false /> </autoSelect>
  61.         <showLines> <false /> </showLines>
  62.         <wideMargins> <true /> </wideMargins>
  63.         <multipleLines> <false /> </multipleLines>
  64.         <reservedFamily> 0 </reservedFamily>
  65.         <titleWidth>0</titleWidth>
  66.         <icon>0</icon>
  67.         <textAlign>left</textAlign>
  68.         <font>New York</font>
  69.         <textSize>10</textSize>
  70.         <textStyle>plain</textStyle>
  71.         <textHeight>13</textHeight>
  72.         <name></name>
  73.         <script></script>
  74.     </part>
  75.     <part>
  76.         <id>3</id>
  77.         <type>field</type>
  78.         <visible> <false /> </visible>
  79.         <dontWrap> <true /> </dontWrap>
  80.         <dontSearch> <false /> </dontSearch>
  81.         <sharedText> <false /> </sharedText>
  82.         <fixedLineHeight> <false /> </fixedLineHeight>
  83.         <autoTab> <false /> </autoTab>
  84.         <lockText> <true /> </lockText>
  85.         <rect>
  86.             <left>27</left>
  87.             <top>27</top>
  88.             <right>231</right>
  89.             <bottom>177</bottom>
  90.         </rect>
  91.         <style>rectangle</style>
  92.         <autoSelect> <false /> </autoSelect>
  93.         <showLines> <false /> </showLines>
  94.         <wideMargins> <true /> </wideMargins>
  95.         <multipleLines> <false /> </multipleLines>
  96.         <reservedFamily> 0 </reservedFamily>
  97.         <titleWidth>0</titleWidth>
  98.         <icon>0</icon>
  99.         <textAlign>left</textAlign>
  100.         <font>Courier</font>
  101.         <textSize>10</textSize>
  102.         <textStyle>plain</textStyle>
  103.         <textHeight>13</textHeight>
  104.         <name>Shows-Labels Button</name>
  105.         <script></script>
  106.     </part>
  107.     <part>
  108.         <id>4</id>
  109.         <type>field</type>
  110.         <visible> <false /> </visible>
  111.         <dontWrap> <true /> </dontWrap>
  112.         <dontSearch> <false /> </dontSearch>
  113.         <sharedText> <false /> </sharedText>
  114.         <fixedLineHeight> <false /> </fixedLineHeight>
  115.         <autoTab> <false /> </autoTab>
  116.         <lockText> <true /> </lockText>
  117.         <rect>
  118.             <left>52</left>
  119.             <top>48</top>
  120.             <right>256</right>
  121.             <bottom>198</bottom>
  122.         </rect>
  123.         <style>rectangle</style>
  124.         <autoSelect> <false /> </autoSelect>
  125.         <showLines> <false /> </showLines>
  126.         <wideMargins> <true /> </wideMargins>
  127.         <multipleLines> <false /> </multipleLines>
  128.         <reservedFamily> 0 </reservedFamily>
  129.         <titleWidth>0</titleWidth>
  130.         <icon>0</icon>
  131.         <textAlign>left</textAlign>
  132.         <font>Courier</font>
  133.         <textSize>10</textSize>
  134.         <textStyle>plain</textStyle>
  135.         <textHeight>13</textHeight>
  136.         <name>Shows-Tapes Button</name>
  137.         <script></script>
  138.     </part>
  139.     <part>
  140.         <id>5</id>
  141.         <type>field</type>
  142.         <visible> <false /> </visible>
  143.         <dontWrap> <true /> </dontWrap>
  144.         <dontSearch> <false /> </dontSearch>
  145.         <sharedText> <false /> </sharedText>
  146.         <fixedLineHeight> <false /> </fixedLineHeight>
  147.         <autoTab> <false /> </autoTab>
  148.         <lockText> <true /> </lockText>
  149.         <rect>
  150.             <left>28</left>
  151.             <top>28</top>
  152.             <right>232</right>
  153.             <bottom>178</bottom>
  154.         </rect>
  155.         <style>rectangle</style>
  156.         <autoSelect> <false /> </autoSelect>
  157.         <showLines> <false /> </showLines>
  158.         <wideMargins> <true /> </wideMargins>
  159.         <multipleLines> <false /> </multipleLines>
  160.         <reservedFamily> 0 </reservedFamily>
  161.         <titleWidth>0</titleWidth>
  162.         <icon>0</icon>
  163.         <textAlign>left</textAlign>
  164.         <font>Courier</font>
  165.         <textSize>10</textSize>
  166.         <textStyle>plain</textStyle>
  167.         <textHeight>13</textHeight>
  168.         <name>Tapes-Background</name>
  169.         <script></script>
  170.     </part>
  171.     <part>
  172.         <id>6</id>
  173.         <type>field</type>
  174.         <visible> <false /> </visible>
  175.         <dontWrap> <true /> </dontWrap>
  176.         <dontSearch> <false /> </dontSearch>
  177.         <sharedText> <false /> </sharedText>
  178.         <fixedLineHeight> <false /> </fixedLineHeight>
  179.         <autoTab> <false /> </autoTab>
  180.         <lockText> <true /> </lockText>
  181.         <rect>
  182.             <left>28</left>
  183.             <top>28</top>
  184.             <right>232</right>
  185.             <bottom>178</bottom>
  186.         </rect>
  187.         <style>rectangle</style>
  188.         <autoSelect> <false /> </autoSelect>
  189.         <showLines> <false /> </showLines>
  190.         <wideMargins> <true /> </wideMargins>
  191.         <multipleLines> <false /> </multipleLines>
  192.         <reservedFamily> 0 </reservedFamily>
  193.         <titleWidth>0</titleWidth>
  194.         <icon>0</icon>
  195.         <textAlign>left</textAlign>
  196.         <font>Courier</font>
  197.         <textSize>10</textSize>
  198.         <textStyle>plain</textStyle>
  199.         <textHeight>13</textHeight>
  200.         <name>Labels-Background</name>
  201.         <script></script>
  202.     </part>
  203.     <part>
  204.         <id>7</id>
  205.         <type>field</type>
  206.         <visible> <false /> </visible>
  207.         <dontWrap> <true /> </dontWrap>
  208.         <dontSearch> <false /> </dontSearch>
  209.         <sharedText> <false /> </sharedText>
  210.         <fixedLineHeight> <false /> </fixedLineHeight>
  211.         <autoTab> <false /> </autoTab>
  212.         <lockText> <true /> </lockText>
  213.         <rect>
  214.             <left>28</left>
  215.             <top>44</top>
  216.             <right>232</right>
  217.             <bottom>194</bottom>
  218.         </rect>
  219.         <style>rectangle</style>
  220.         <autoSelect> <false /> </autoSelect>
  221.         <showLines> <false /> </showLines>
  222.         <wideMargins> <true /> </wideMargins>
  223.         <multipleLines> <false /> </multipleLines>
  224.         <reservedFamily> 0 </reservedFamily>
  225.         <titleWidth>0</titleWidth>
  226.         <icon>0</icon>
  227.         <textAlign>left</textAlign>
  228.         <font>Courier</font>
  229.         <textSize>10</textSize>
  230.         <textStyle>plain</textStyle>
  231.         <textHeight>13</textHeight>
  232.         <name>Labels-Print</name>
  233.         <script></script>
  234.     </part>
  235.     <part>
  236.         <id>11</id>
  237.         <type>field</type>
  238.         <visible> <false /> </visible>
  239.         <dontWrap> <false /> </dontWrap>
  240.         <dontSearch> <false /> </dontSearch>
  241.         <sharedText> <false /> </sharedText>
  242.         <fixedLineHeight> <false /> </fixedLineHeight>
  243.         <autoTab> <false /> </autoTab>
  244.         <lockText> <false /> </lockText>
  245.         <rect>
  246.             <left>28</left>
  247.             <top>77</top>
  248.             <right>205</right>
  249.             <bottom>139</bottom>
  250.         </rect>
  251.         <style>rectangle</style>
  252.         <autoSelect> <false /> </autoSelect>
  253.         <showLines> <false /> </showLines>
  254.         <wideMargins> <false /> </wideMargins>
  255.         <multipleLines> <false /> </multipleLines>
  256.         <reservedFamily> 0 </reservedFamily>
  257.         <titleWidth>0</titleWidth>
  258.         <icon>0</icon>
  259.         <textAlign>left</textAlign>
  260.         <font></font>
  261.         <textSize>12</textSize>
  262.         <textStyle>plain</textStyle>
  263.         <textHeight>16</textHeight>
  264.         <name>Utility-About</name>
  265.         <script></script>
  266.     </part>
  267.     <content>
  268.         <layer>card</layer>
  269.         <id>2</id>
  270.         <text><span class="style1">his stack will update release 1.8, or 1.8.1, of Stack-O-Dead to release 1.8.2.Put this stack, along with </span><span class="style4">copies</span><span class="style1"> of all 7 of the Stack-O-Dead stacks into a folder, and click the Upgrade button at the bottom.There is no real harm in doing this more than once, but be careful, and once should be enough.</span></text>
  271.     </content>
  272.     <content>
  273.         <layer>card</layer>
  274.         <id>3</id>
  275.         <text>--  This button sends you to the Dead Labels stack.  It looks for a--  card with a label for the current show.  If not found, it will--  offer to create a set of labels for you, filling in the date,--  location, and the songs from sets 1 and two. The current format--  starts the second set on the second label card.  It puts the--  tape flip after the sixth song for each set.----  If you don't want to create the labels, you can cancel, or--  just go to the Tapes stack without bothering to create the--  new card.on mouseUp  if the commandKey is down then    doHelp    exit mouseUp  end if  --  global listDate, labelList, listVenue  put field "date" into listDate  put field "location" into listVenue  put field "songs" into labelList  --  push this card  set the lockScreen to true  go to stack "Dead Labels"  --  go card cardName  if findLabelByDate( listDate ) is false then    answer "No labels.  Shall we make 'em?" with "Cancel"┬¼    or "Don't Bother!" or "OK"    if it is "Cancel" then      pop card      exit mouseUp    else if it is "OK" then      newLabels( listDate )    end if  end ifend mouseUp</text>
  276.     </content>
  277.     <content>
  278.         <layer>card</layer>
  279.         <id>4</id>
  280.         <text>--  This button sends you to the Dead Tapes stack.  It looks for a--  card for a tape for the current show.  If not found, it will--  offer to create one for you, filling in the date and location.--  You can do that, cancel, or just go to the Tapes stack without--  bothering to create the new card.on mouseUp  if the commandKey is down then    doHelp    exit mouseUp  end if  --  global listDate, labelList, listVenue  put field "date" into listDate  put field "location" into listVenue  put field "songs" into labelList  lock screen  push this card  go to "Dead Tapes"  if findTapeByDate( listDate ) is false then    answer "No tape yet.  Set one up?" with "Cancel" or┬¼    "OK" or "Don't Bother"    if it is "Cancel" then      pop card      exit mouseUp    else if it is "OK" then      doMenu "New Card"      put listDate into field "date"      put listVenue into field "location"      unlock screen      click at the loc of field "source"    end if  end ifend mouseUp</text>
  281.     </content>
  282.     <content>
  283.         <layer>card</layer>
  284.         <id>5</id>
  285.         <text>on newCard  tabKeyend newCardfunction findTapeByDate theShowDate  --  a binary search through the cards.  --  this particular version, upon failing to find the show, will  --  leave you on the card immediately PREVIOUS to the date  --  searched for.  This makes it easy to insert new shows into  --  the proper place.  --  put the number of this card into origCard  put theShowDate into searchDate  convert searchDate to seconds  put the number of cards into endCard  put trunc( endCard / 2 ) into targetCard  put 1 into begCard  set the cursor to 4  set the lockScreen to true  repeat forever    showBusy    go card targetCard    get field "date"    if it is theShowDate then return true    convert it to seconds    if it > searchDate then      put the number of this card into endCard    else      put the number of this card into begCard    end if    if (endCard - begCard) < 2 then      go card begCard      get field "date"      convert it to seconds      if it is searchDate then return true      go next card      get field "date"      convert it to seconds      if it is searchDate then return true      --  if we reach here the show does not exist yet      --  find the show previous to the one we were looking for      repeat forever        get field "date"        convert it to seconds        if (it < searchDate) or (the number of this card is 1) then exit repeat        go previous card      end repeat      exit repeat    end if    --    put trunc( begCard + ((endCard - begCard) / 2) ) into targetCard    --    put begCard & " : " & targetCard & " : " & endCard  end repeat  hide the message  return falseend findTapeByDate</text>
  286.     </content>
  287.     <content>
  288.         <layer>card</layer>
  289.         <id>7</id>
  290.         <text>--  This button will cause two labels for a show to be--  printed.  It will get both labels for ONE show (provided the--  show has two labels on file), regardless of weather you--  are on Set I or Set II when you click it.on mouseUp  if the commandKey is down then    doHelp    exit mouseUp  end if  --  open printing with dialog  push this card  --lock screen  --show field "Print Shield"  if field "set" is 2 then    go previous card  end if  print card from 16,20 to 352,304  go next card  print card from 16,20 to 352,304  close printing  --hide field "Print Shield"  pop card  --  set the lockScreen to falseend mouseUp</text>
  291.     </content>
  292.     <content>
  293.         <layer>card</layer>
  294.         <id>11</id>
  295.         <text><span class="style3">tack-O-Dead Grateful Dead StackwareVersion 1.8.2 - March 29, 1991┬⌐ 1987, 1988, 1989, 1990, 1991 by John GilbertAll Rights ReservedJohn Gilbert19812 226th Ave  NEWoodinville,  WA  98072(206) 788-0480USENET:   ... ! uunet ! mdisea ! gilbertBITNET:  gilbert@MDI.COMThis stuff is free to share.  If you find it useful, then it would probably make us both feel a little bit better if you sent a small donation  to: SEVA Foundation1301 Henry St.Berkeley,  CA   94709Believe it if you need it, if you don't just pass it on!Comments and suggestions encouraged!Tapes traded!</span><span class="style1"></span></text>
  296.     </content>
  297.     <content>
  298.         <layer>card</layer>
  299.         <id>6</id>
  300.         <text>on newCard  tabKeyend newCardon newLabels showDate  global listDate, labelList, listVenue  --  put showDate into it  --  convert it to dateItems  --  put item 1 of it into theYear  set the lockScreen to true    if findLabelByDate( showDate ) is true then    answer "Labels already made!"    exit newLabels  end if  set the cursor to 4  put empty into Venue  put empty into songList  push this card  if showDate is listDate then    put labelList into songList    put item 1 of listVenue into Venue  else    go to stack "Dead Shows"    put findShowByDate( showDate ) into foundIt    if foundIt is true then      put item 1 of field "location" into Venue      put field "songs" into songList    end if  end if  pop card  get field "set"  if it is 1 then go next card  --  doMenu "New Card"  put showDate into field "date"  put "1" into field set  put Venue into field "location"  put Venue into field "side location"  --  doMenu "New Card"  put showDate into field "date"  put "2" into field "set"  put Venue into field "location"  put Venue into field "side location"  --  go prev  if songList is not empty then    put 0 into firstSet    put 0 into secondSet    put 1 into songNum    put the number of lines in songList into totalSongs    -- do first set label    put "side A" into tapeSide    repeat      put line songNum of songList into thisSong      add 1 to songNum      if thisSong is empty then        exit repeat      end if      put thisSong & return after field tapeSide      add 1 to firstSet      if firstSet > 6 then        put "side B" into tapeSide      end if    end repeat    -- do second set label    go to next card    put "side A" into tapeSide    repeat      put line songNum of songList into thisSong      put thisSong & return after field tapeSide      add 1 to songNum      add 1 to secondSet      if songNum > totalSongs then        exit repeat      end if      if secondSet > 4 then        put "side B" into tapeSide      end if    end repeat    go to previous card  end if  click at the loc of field "location"end newLabelsfunction findLabelByDate theShowDate  --  a binary search through the cards.  --  this particular version, upon failing to find the show, will  --  leave you on the card immediately PREVIOUS to the date  --  searched for.  This makes it easy to insert new shows into  --  the proper place.  --  put the number of this card into origCard  put theShowDate into searchDate  convert searchDate to seconds  put the number of cards into endCard  put trunc( endCard / 2 ) into targetCard  put 1 into begCard  set the cursor to 4  set the lockScreen to true  repeat forever    showBusy    go card targetCard    get field "date"    if it is theShowDate then return true    convert it to seconds    if it > searchDate then      put the number of this card into endCard    else      put the number of this card into begCard    end if    if (endCard - begCard) < 2 then      go card begCard      get field "date"      convert it to seconds      if it is searchDate then return true      go next card      get field "date"      convert it to seconds      if it is searchDate then return true      --  if we reach here the show does not exist yet      --  find the show previous to the one we were looking for      repeat forever        get field "date"        convert it to seconds        if (it < searchDate) or (the number of this card is 1) then exit repeat        go previous card      end repeat      exit repeat    end if    --    put trunc( begCard + ((endCard - begCard) / 2) ) into targetCard    --    put begCard & " : " & targetCard & " : " & endCard  end repeat  hide the message  return falseend findLabelByDate</text>
  301.     </content>
  302.     <name></name>
  303.     <script></script>
  304. </card>
  305.  
  306.  
  307.